const { DataTypes } = require( 'sequelize');
const sequelize = require( '../utils/sequelize' );

const User = sequelize.define('User', {
    id: {
        type: DataTypes.STRING,
        primaryKey: true
    },
    username: DataTypes.STRING,
    password: DataTypes.STRING,
    salt: DataTypes.STRING ,
    nickname: DataTypes.STRING
}, {
    timestamps: false,
    tableName: 't_users'
});

module.exports = User ;